package com.coffee.sku.service.inquire.dao;

import com.coffee.sku.api.inquire.query.InquireSalesInformationQuery;
import com.coffee.sku.service.inquire.bean.InquireSalesInformation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InquireSalesInformationDao {
	public InquireSalesInformation findById(Integer id);
	
	public InquireSalesInformation findByIdForUpdate(Integer id);
	
	public List<InquireSalesInformation> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") InquireSalesInformationQuery param);

	public List<InquireSalesInformation> page(@Param("param") InquireSalesInformationQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<InquireSalesInformation> list(@Param("param") InquireSalesInformationQuery param);

	public InquireSalesInformation findFirst(@Param("param") InquireSalesInformationQuery param);

	public Integer insert(InquireSalesInformation param);

	Integer insertBatch(List<InquireSalesInformation> list);

	public void updateById(@Param("param") InquireSalesInformation param);
	
	public Integer deleteById(Integer id);

	public Integer deleteBySkuId(Integer skuId);

	public Integer deleteByIds(List<Integer> idList);

	public List<Integer> findIdsBySkuId(Integer skuId);
	
}